public class Test03 {
    public static void main(String[] args) {
        int sum1=getSum(1,2,3,4,5,6,7);
        System.out.println(sum1);
        getSum1(1,2,3,4,5);
    }
    public static int getSum(int...args){
        int sum=0;
        for(int i:args){
            sum=sum+i;
        }
        return sum;
    }
    public static void getSum1(int a,int...args){

    }
}
